package common

import (
	"context"

	"github.com/spf13/cast"
)

func GetUserFromCtx(ctx context.Context) (string, error) {
	return cast.ToStringE(ctx.Value(UserCtxKey))
}
